object PackageInfo {
  def main(args: Array[String]): Unit = {
    // 定义包裹的所有信息变量
    val recipientName: String = "张三"
    val packageWeight: Double = 2.5
    val isSigned: Boolean = false
    val lockerNumber: Int = 108
    val packageType: String = "生活用品"
    val deliveryDate: String = "2025-10-09"

    println("===== 包裹详情 =====")
    println(s"收件人姓名: $recipientName")
    println(s"包裹重量: $packageWeight 千克")
    println(s"是否签收: ${if (isSigned) "已签收" else "未签收"}")
    println(s"存放柜子编号: $lockerNumber")
    println(s"包裹类型: $packageType")
    println(s"配送日期: $deliveryDate")
    println("===================")

    var packageSigned: Boolean = isSigned
    println("\n执行签收操作...")
    packageSigned = true
    println(s"更新后签收状态: ${if (packageSigned) "已签收" else "未签收"}")
  }
}
